#!/bin/bash

path=$(pwd)


function build_windows() {
    cmake -DCMAKE_BUILD_TYPE=Debug -DTARGET_PLATFORM="win" -G "Unix Makefiles" -S ${path} -B ${path}/cmake-build-debug-win
    cmake --build ${path}/cmake-build-debug-win
}

function build_linux() {
    cmake -DCMAKE_BUILD_TYPE=Debug -DTARGET_PLATFORM="linux" -G "Unix Makefiles" -S ${path} -B ${path}/cmake-build-debug-linux
    cmake --build ${path}/cmake-build-debug-linux
}



# build windows
build_windows

# build linux
build_linux